Api.CreateAsync method

Prepares to link a program to the KINGSTAR Subsystem as an asynchronous operation.

Namespace: IntervalZero.KINGSTAR.Local.Api

Assembly: IntervalZero.KINGSTAR.Local.Api (in IntervalZero.KINGSTAR.Local.dll) Version: 4.4.0.0

Syntax

C#VB
public async Task<KsError> CreateAsync(
       int Instance,
       int IdealProcessor
)
Public Function CreateAsync(
       Instance As Integer,
       IdealProcessor As Integer
) As Task(Of KsError)

Parameters

Instance

Type: int

Selects which KINGSTAR Runtime instance you want to use when you have Multiple Master Package. If you don't have the package, set it to zero (0). If you have three instances and want to use the third, set it to two (2). The number of instances is determined by the license you have.

 

IdealProcessor

Type: int

Configures which core the KINGSTAR Subsystem runs on. All threads of the Subsystem run on the given processor. Core Zero is always for Windows. Other cores can be assigned to the Subsystem depending on your settings. By default, IdealProcessor is set to zero, meaning KINGSTAR will use the ideal processor configured in the instance configuration table (Control Panel > Runtime Settings > General Settings). If the table lacks settings for the given instance, the Subsystem may run on any core available to RTX64. If you set it to another number, such as two, the Subsystem will take the Core Two.

Return value

Type: Task<KsError>

Task: Represents an asynchronous operation.

KsError: A return code of a method.

Remarks

Examples

C#
N/A

See also

Api Class

IntervalZero.KINGSTAR.Local.Api Namespace